package com.ez.supervise.model.biz;

import java.util.Date;

import com.ez.supervise.model.base.BaseEntity;

/**
 * 指标类别目录
 * 
 */
public class GoalCategory extends BaseEntity {

    private static final long serialVersionUID = 3729598212704027165L;

    private String name;// 指标目录项（节点）名称
    private Double point;// 指标目录项的分值
    private Long parentId;// 父节点id
    private Integer ordering;// 排序
    private Double percent;// 指标目录和指标细则换算关系（％）
    private String value;// 目录项值（预留）
    private String isFixed;// 是否是固定结点 y=固定结点 (不能删除) n-非固定结点
    private String tag;// 预留（考虑，给指标目录分类等）
    private Long checkOrgId;// 指标目录的考核责任单位
    private Long applyOrgId; //指标目录申报单位(可申报此目录下的指标，只有叶子节点有此属性)
    private Integer year;
    private String categoryIdPath;// 这里目录id路径质保存到上级即可，目录id之间用“/”分割，如
				  // 100/1001/200
    private String categoryNamePath;// 目录项名称路径：如：公共指标/基础工作/廉政建设
    private String isLeaf;// y:是叶子节点，n：不是叶子节点。
    private Integer level;// 节点坐在树的层次
    private String status;// 目录状态
    private Integer isAdded; // 是否附加分值(1-是 0-否)

    public Integer getIsAdded() {
		return isAdded;
	}

	public void setIsAdded(Integer isAdded) {
		this.isAdded = isAdded;
	}

	public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public Double getPoint() {
	return point;
    }

    public void setPoint(Double point) {
	this.point = point;
    }

    public Long getParentId() {
	return parentId;
    }

    public void setParentId(Long parentId) {
	this.parentId = parentId;
    }

    public Integer getOrdering() {
	return ordering;
    }

    public void setOrdering(Integer ordering) {
	this.ordering = ordering;
    }

    public Double getPercent() {
	return percent;
    }

    public void setPercent(Double percent) {
	this.percent = percent;
    }

    public String getValue() {
	return value;
    }

    public void setValue(String value) {
	this.value = value;
    }

    public String getIsFixed() {
	return isFixed;
    }

    public void setIsFixed(String isFixed) {
	this.isFixed = isFixed;
    }

    public String getTag() {
	return tag;
    }

    public void setTag(String tag) {
	this.tag = tag;
    }

    public Long getCheckOrgId() {
	return checkOrgId;
    }

    public void setCheckOrgId(Long checkOrgId) {
	this.checkOrgId = checkOrgId;
    }

    public Integer getYear() {
	return year;
    }

    public void setYear(Integer year) {
	this.year = year;
    }

    public String getCategoryIdPath() {
	return categoryIdPath;
    }

    public void setCategoryIdPath(String categoryIdPath) {
	this.categoryIdPath = categoryIdPath;
    }

    public String getCategoryNamePath() {
	return categoryNamePath;
    }

    public void setCategoryNamePath(String categoryNamePath) {
	this.categoryNamePath = categoryNamePath;
    }

    public String getIsLeaf() {
	return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
	this.isLeaf = isLeaf;
    }

    public Integer getLevel() {
	return level;
    }

    public void setLevel(Integer level) {
	this.level = level;
    }

    public String getStatus() {
	return status;
    }

    public void setStatus(String status) {
	this.status = status;
    }

    public boolean isFixed() {
	return FLAG_YES.equalsIgnoreCase(this.isFixed);
    }
    
    public boolean isLeaf() {
	return FLAG_YES.equalsIgnoreCase(this.isLeaf);
    }

	public void setApplyOrgId(Long applyOrgId) {
		this.applyOrgId = applyOrgId;
	}

	public Long getApplyOrgId() {
		return applyOrgId;
	}
}
